#!/bin/zsh

# 防止脚本被引用多次
if [ "$t_sh" ]; then
    return
fi
export t_sh=${BASH_SOURCE[0]}
echo "这是t" ${BASH_SOURCE[0]}

function test() {
    echo "我是测试函数"
}

# 申明关联数组
declare -A mydict
mydict["name"]="guess"
mydict["age"]=18
mydict["fast"]=24
for value in ${mydict[*]}; do
    echo $value
done
